﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PersonStatesForm.aspx.cs"
    Inherits="FantastPlatform.Community.UI.InfoCollection.PersonStatesForm" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">
        var pstf = new FantastPlatform.UI.PersonStatesForm({
            renderTo: 'pstf_div',
            StatesId: '<%=GetId() %>',
            Type: '<%=GetType() %>',
            url: '../Service/PersonStatesService.aspx?Action=Add',
            tbar: [{
                text: '保存',
                iconCls: 'save',
                handler: function () {
                    if (pstf.Type == '1') {
                        submitFormJson(pstf, pstg, currtWind);
                    } else if (pstf.Type == '2') {
                        submitFormJson(pstf, pstg2, currtWind);
                    }                   
                }
            }, '-', {
                text: '重置',
                iconCls: 'cancel',
                handler: function () { pstf.form.reset(); }
            }
]
        });
    </script>
</head>
<body>
    <div id="pstf_div">
    </div>
</body>
</html>
